package com.gzhryc.shared_device.oem.code.config.services.models;

import java.io.Serializable;
import java.util.List;

public class HTTPConfigContent implements Serializable {

    private static final long serialVersionUID = 1L;

	private String url;

    private String requestContentType;

    private String responseContentType;

    private List<ParamItem> headItems;

    private List<ParamItem> requestItems;

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getRequestContentType() {
        return requestContentType;
    }

    public void setRequestContentType(String requestContentType) {
        this.requestContentType = requestContentType;
    }

    public String getResponseContentType() {
        return responseContentType;
    }

    public void setResponseContentType(String responseContentType) {
        this.responseContentType = responseContentType;
    }

    public List<ParamItem> getHeadItems() {
        return headItems;
    }

    public void setHeadItems(List<ParamItem> headItems) {
        this.headItems = headItems;
    }

    public List<ParamItem> getRequestItems() {
        return requestItems;
    }

    public void setRequestItems(List<ParamItem> requestItems) {
        this.requestItems = requestItems;
    }

    public static class ParamItem {

        private Integer index;      //当前列表中的索引，用于修改和删除
        private String name;
        private String value;

        public Integer getIndex() {
            return index;
        }

        public void setIndex(Integer index) {
            this.index = index;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getValue() {
            return value;
        }

        public void setValue(String value) {
            this.value = value;
        }
    }
}
